package com.itheima.travel.mapperExt;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

import java.util.List;
@Mapper
public interface RouteMapperExt {
    //当收藏之后根据路线id，更改收藏总数量+1
    @Update("update tab_route set attention_count = attention_count+1 where id = #{routeId}" )
    Long updateRouteCountById(Long routeId);

}
